#
# Created by Administrator on 2021/7/28 AT 20:59.
#
from typing import List
from collections import Counter


class Solution:
    def containsDuplicate(self, nums: List[int]) -> bool:
        ct = Counter(nums)
        for each in ct.values():
            if each > 1:
                return True
        return False


if __name__ == '__main__':
    sol = Solution()
    print(sol.containsDuplicate([1,2,3,1]))
    print(sol.containsDuplicate([1,2,3,4]))
    print(sol.containsDuplicate([1, 1, 1, 3, 3, 4, 3, 2, 4, 2]))
